﻿using DigitalHealth.PACS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DigitalHealth.PACS.ChatWebSocket.Services
{
    public interface IChatGroupServer
    {
        /// <summary>
        /// 查询所有群组
        /// </summary>
        /// <returns></returns>
        IEnumerable<ChatGroup> GetChatGroups();
        /// <summary>
        /// 根据id查询指定群组
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ChatGroup GetChatGroupById(string id);
        /// <summary>
        /// 查询用户的群组
        /// </summary>
        /// <param name="no"></param>
        /// <returns></returns>
        IEnumerable<ChatGroup> GetChatGroupByUser(ChatUser chatUser);

        void Create(ChatGroup chatUser);
        void Update(ChatGroup chatUser);
        void Delete(ChatGroup chatUser);
        bool ChatUserExists(ChatGroup chatUser);
    }
}
